<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="com.roadmap.common.RdcResourceBundle" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="res/css/layout.css" rel="stylesheet" type="text/css" media="all" />
<link href="res/css/auth.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="res/js/func.js"></script>
<script type="text/javascript" src="res/js/auth.js"></script>
<title>找回密码 | <%=RdcResourceBundle.COMPANY_NAME %></title>
</head>

<body>
<div id="container">
	<jsp:include page="/res/jsp/header.jsp"></jsp:include>
	
	<!-- define the frame for loging on-->
	<div class="mainbody"><div class="logon-height"><div class="logonbody">
		<div class="logon-div"><div class="login-form">
			<div class="title-div">找回密码</div>
			<!-- define a form for logging in -->
			<html:form action="/getpwd" onsubmit="return checkPwdInputs();">
				<div class="frame">	
					<div id="pwdMessage" class="error-message"><html:errors /></div>
					<!-- define a form for registration -->
					<table class="login-table">
						<tr>
							<td class="left-column">邮箱:</td>
							<td class="right-column">
								<html:text property="pwdMail" styleClass="input-text" tabindex="1"/>
							</td>
						</tr>
						<tr>
							<td class="left-column">验证码:</td>
							<td class="right-column">
								<html:text styleClass="input-text" property="codes" maxlength="4" tabindex="2"/>
							</td>						
						</tr>
						<tr>
							<td class="left-column"></td>
							<td class="right-column">
								<img class="input-image" alt="code..." name="randImage" id="randImage" src="res/jsp/rand.jsp"/>
							</td>		
						</tr>				
						<tr>
							<td class="left-column"></td>
							<td class="right-column">
								<html:submit property="pwdSubmit" styleClass="submit-signup" value="确定" tabindex="3"/>
							</td>
						</tr>
					</table>
				</div>
			</html:form>	
		</div></div>		
	</div></div>
	<div class="clear-div"></div>
	</div>
	
	<jsp:include page="/res/jsp/footer.jsp"></jsp:include>
</div>
<script type="text/javascript">
var em = $("pwdMail");
if (em.value == "") {
	em.focus();
} else {
	$("codes").focus();
}
</script>
</body>

</html>
